<table cellspacing="1" cellpadding="3" style="background: #fff;width:100%">
<tr>
    <td class="aslefttd"><label class="tlable"> A:<input type="checkbox" class="checkitem" value="0" <?php if ($ans){if ( in_array('0', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_a" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_a'].'"';}?>></td>
</tr>
<tr>
    <td class="aslefttd"><label class="tlable"> B:<input type="checkbox" class="checkitem" value="1" <?php if ($ans){if ( in_array('1', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_b" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_b'].'"';}?>></td>
</tr>
<tr>
    <td class="aslefttd"><label class="tlable"> C:<input type="checkbox" class="checkitem" value="2" <?php if ($ans){if ( in_array('2', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_c" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_c'].'"';}?>></td>
</tr>
<tr>
    <td class="aslefttd"><label class="tlable"> D:<input type="checkbox" class="checkitem" value="3" <?php if ($ans){if ( in_array('3', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_d" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_d'].'"';}?>></td>
</tr>
<tr>
    <td class="aslefttd"><label class="tlable"> E:<input type="checkbox" class="checkitem" value="4" <?php if ($ans){if ( in_array('4', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_e" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_e'].'"';}?>></td>
</tr>
<tr>
    <td class="aslefttd"><label class="tlable"> F:<input type="checkbox" class="checkitem" value="5" <?php if ($ans){if ( in_array('5', explode(',',$ans['res']))){ echo ' checked="checked"';}}?>></label></td>
    <td><input type="text" class="input4" id="mu_f" <?php if ($ans) { echo 'value="'.$ans['answer']['mu_f'].'"';}?>></td>
</tr>
</table>
<script type="text/javascript">
function getAnswer()
{
    var res = getCheckItems();
    if(res==false){       
        return false;
    }
    var mu_a = $.trim($("#mu_a").val());
    var mu_b = $.trim($("#mu_b").val());
    var mu_c = $.trim($("#mu_c").val());
    var mu_d = $.trim($("#mu_d").val());
    var mu_e = $.trim($("#mu_e").val());
    var mu_f = $.trim($("#mu_f").val());
    var tmpobj = {"res":res,"answer":{"mu_a":mu_a,"mu_b":mu_b,"mu_c":mu_c,"mu_d":mu_d,"mu_e":mu_e,"mu_f":mu_f}};
    return $.toJSON(tmpobj);
}
</script>